package main

import (
	"fmt"
)

func main() {

	var channel chan int = make(chan int)

	var channel_in chan int = channel

	var channel_out chan int = channel


	go func() {

		for i:= 1; i<=100 ; i++  {

			//channel_in <- i

			//time.Sleep(time.Second)
		}
	}()



	for ; ;  {

		select {
		case channel_in <- 0:

			fmt.Println("channel_in .......")

		case s:= <- channel_out:

			fmt.Println("channel_out:",s)
		}
	}
}
